/*
 *   Copyright (C) 2011 David Swords
 *	
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

public class GroupDemo implements Runnable {
	
	private LANdroid lan;
	
	public GroupDemo(String IP) {
		lan = new LANdroid(0, IP);
	}
	
	public void run() {
		// TODO Auto-generated method stub
	
//		lan.flipper(Math.PI);
		lan.move(0, 0.75 * Math.PI);
		lan.move(200, 0.75 * Math.PI);
		lan.move(250, 1.75 * Math.PI);
		lan.move(0, 0.75 * Math.PI);
//		lan.flipper(0);
	}
	

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		(new Thread(new GroupDemo("172.20.0.30"))).start();
		(new Thread(new GroupDemo("172.20.0.8"))).start();
		(new Thread(new GroupDemo("172.20.0.34"))).start();
		(new Thread(new GroupDemo("172.20.0.26"))).start();
		(new Thread(new GroupDemo("172.20.0.18"))).start();
		(new Thread(new GroupDemo("172.20.0.28"))).start();
		(new Thread(new GroupDemo("172.20.0.24"))).start();
	}

}
